package com.ws.shop.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.ws.shop.bean.Page;
import com.ws.shop.dao.TransactionDao;
import com.ws.shop.service.TransactionService;

@Service(value="transactionService")
public class TransactionServiceImpl implements TransactionService {
	@Resource(name="transactionDao")
	private TransactionDao transactionDao;
	
	@Transactional(propagation=Propagation.NOT_SUPPORTED,readOnly=true)
	public Page findTransactionListPage(int pageno, int pagesize, String name,
			String starttime, String endtime) {
		return transactionDao.findTransactionListPage(pageno,pagesize,name,starttime,endtime);
	}

	public void displayUserTransaction(final Page page, final long uid) {
		transactionDao.displayUserTransaction(page, uid);
	}
}
